package day04;

public class ForDemo {
    public static void main(String[] args) {
        for(int times=0;times<5;times++){
            System.out.println("行动是成功的阶梯");
        }
        System.out.println("继续执行...");

        for(int num=1;num<=9;num++){
            System.out.println(num+"*9="+num*9);
        }

        for(int num=1;num<=9;num++){
            for(int a=1;a<=9;a++){
                System.out.println(num+"*"+a+"="+(num*a));
            }
        }

        for(int num=9;num>0;num--){
            System.out.println(num+"*9="+num*9);
        }

        for(int num=99;num>0;num--){
            System.out.println(num+"*92="+num*92);
        }
        //

        for(int num=1;num<=9;num+=2){
            System.out.println(num+"*9="+num*9);
        }
        //1*9=9
        //3*9=27
        //5*9=45
        //7*9=63
        //9*9=81

        for(int num=1;num<=94;num+=12){
            System.out.println(num+"*9="+num*9);
        }
        //1*9=9
        //13*9=117
        //25*9=225
        //37*9=333
        //49*9=441
        //61*9=549
        //73*9=657
        //85*9=765

        int sum=0;
        for(int i=1;i<=100;i++){
            sum=sum+i;}
        System.out.println("sum="+sum);
        //sum=5050
        sum=0;
        for(int i=1;i<=1007;i++){
            sum=sum+i;}
        System.out.println("sum="+sum);
        //sum=507528

        for(int i=1,j=2;i<=6;i+=1,j+=3){
            System.out.println(i+","+j);
        }


    }


}
